/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.refund.service.log;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.refund.entity.log.EcRefundLog;
import com.thinkgem.jeesite.modules.refund.dao.log.EcRefundLogDao;

/**
 * 退款日志Service
 * @author Egan
 * @version 2017-01-23
 */
@Service
@Transactional(readOnly = true)
public class EcRefundLogService extends CrudService<EcRefundLogDao, EcRefundLog> {

	@Autowired EcRefundLogDao ecRefundLogDao;
	public EcRefundLog get(String id) {
		return super.get(id);
	}
	
	public List<EcRefundLog> findList(EcRefundLog ecRefundLog) {
		return super.findList(ecRefundLog);
	}
	
	public Page<EcRefundLog> findPage(Page<EcRefundLog> page, EcRefundLog ecRefundLog) {
		return super.findPage(page, ecRefundLog);
	}
	
	@Transactional(readOnly = false)
	public void save(EcRefundLog ecRefundLog) {
		super.save(ecRefundLog);
	}
	
	@Transactional(readOnly = false)
	public void delete(EcRefundLog ecRefundLog) {
		super.delete(ecRefundLog);
	}
	
	public EcRefundLog getEcRefundLogByCoNumMchId(EcRefundLog log) {
		return ecRefundLogDao.getEcRefundLogByCoNumMchId(log);
	}
}